Optimal. Leaf size=133 \[ \frac {\left (3 b^2-8 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a^2 \left (b^2-4 a c\right )}-\frac {2 \left (b^2-2 a c+\frac {b c}{x}\right ) x}{a \left (b^2-4 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}-\frac {3 b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{2 a^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.312, Rules used = {1356, 754, 820,
738, 212} \begin {gather*} -\frac {3 b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right )}{2 a^{5/2}}+\frac {x \left (3 b^2-8 a c\right ) \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}{a^2 \left (b^2-4 a c\right )}-\frac {2 x \left (-2 a c+b^2+\frac {b c}{x}\right )}{a \left (b^2-4 a c\right ) \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 738
Rule 754
Rule 820
Rule 1356
Rubi steps
\begin {align*} \int \frac {1}{\left (a+\frac {c}{x^2}+\frac {b}{x}\right )^{3/2}} \, dx &=-\text {Subst}\left (\int \frac {1}{x^2 \left (a+b x+c x^2\right )^{3/2}} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {2 \left (b^2-2 a c+\frac {b c}{x}\right ) x}{a \left (b^2-4 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}+\frac {2 \text {Subst}\left (\int \frac {\frac {1}{2} \left (-3 b^2+8 a c\right )-b c x}{x^2 \sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )}{a \left (b^2-4 a c\right )}\\ &=\frac {\left (3 b^2-8 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a^2 \left (b^2-4 a c\right )}-\frac {2 \left (b^2-2 a c+\frac {b c}{x}\right ) x}{a \left (b^2-4 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}+\frac {(3 b) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )}{2 a^2}\\ &=\frac {\left (3 b^2-8 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a^2 \left (b^2-4 a c\right )}-\frac {2 \left (b^2-2 a c+\frac {b c}{x}\right ) x}{a \left (b^2-4 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}-\frac {(3 b) \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+\frac {b}{x}}{\sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{a^2}\\ &=\frac {\left (3 b^2-8 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x}{a^2 \left (b^2-4 a c\right )}-\frac {2 \left (b^2-2 a c+\frac {b c}{x}\right ) x}{a \left (b^2-4 a c\right ) \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}-\frac {3 b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{2 a^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.44, size = 140, normalized size = 1.05 \begin {gather*} -\frac {2 \sqrt {a} \left (-3 b^3 x+10 a b c x+4 a c \left (2 c+a x^2\right )-b^2 \left (3 c+a x^2\right )\right )-3 b \left (b^2-4 a c\right ) \sqrt {c+x (b+a x)} \log \left (a^2 \left (b+2 a x-2 \sqrt {a} \sqrt {c+x (b+a x)}\right )\right )}{2 a^{5/2} \left (b^2-4 a c\right ) x \sqrt {a+\frac {c+b x}{x^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 197, normalized size = 1.48
method | result | size |
default | \(\frac {\left (a \,x^{2}+b x +c \right ) \left (8 a^{\frac {7}{2}} c \,x^{2}-2 a^{\frac {5}{2}} b^{2} x^{2}+20 a^{\frac {5}{2}} b c x -6 a^{\frac {3}{2}} b^{3} x +16 a^{\frac {5}{2}} c^{2}-6 a^{\frac {3}{2}} b^{2} c -12 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) \sqrt {a \,x^{2}+b x +c}\, a^{2} b c +3 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) \sqrt {a \,x^{2}+b x +c}\, a \,b^{3}\right )}{2 a^{\frac {7}{2}} \left (\frac {a \,x^{2}+b x +c}{x^{2}}\right )^{\frac {3}{2}} x^{3} \left (4 a c -b^{2}\right )}\) | \(197\) |
risch | \(\frac {a \,x^{2}+b x +c}{a^{2} \sqrt {\frac {a \,x^{2}+b x +c}{x^{2}}}\, x}+\frac {\left (\frac {3 b x}{2 a^{2} \sqrt {a \,x^{2}+b x +c}}-\frac {b^{2}}{4 a^{3} \sqrt {a \,x^{2}+b x +c}}-\frac {b^{3} x}{2 a^{2} \left (4 a c -b^{2}\right ) \sqrt {a \,x^{2}+b x +c}}-\frac {b^{4}}{4 a^{3} \left (4 a c -b^{2}\right ) \sqrt {a \,x^{2}+b x +c}}-\frac {3 b \ln \left (\frac {\frac {b}{2}+a x}{\sqrt {a}}+\sqrt {a \,x^{2}+b x +c}\right )}{2 a^{\frac {5}{2}}}+\frac {c}{a^{2} \sqrt {a \,x^{2}+b x +c}}\right ) \sqrt {a \,x^{2}+b x +c}}{\sqrt {\frac {a \,x^{2}+b x +c}{x^{2}}}\, x}\) | \(220\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 465, normalized size = 3.50 \begin {gather*} \left [\frac {3 \, {\left (b^{3} c - 4 \, a b c^{2} + {\left (a b^{3} - 4 \, a^{2} b c\right )} x^{2} + {\left (b^{4} - 4 \, a b^{2} c\right )} x\right )} \sqrt {a} \log \left (-8 \, a^{2} x^{2} - 8 \, a b x - b^{2} - 4 \, a c + 4 \, {\left (2 \, a x^{2} + b x\right )} \sqrt {a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}\right ) + 4 \, {\left ({\left (a^{2} b^{2} - 4 \, a^{3} c\right )} x^{3} + {\left (3 \, a b^{3} - 10 \, a^{2} b c\right )} x^{2} + {\left (3 \, a b^{2} c - 8 \, a^{2} c^{2}\right )} x\right )} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{4 \, {\left (a^{3} b^{2} c - 4 \, a^{4} c^{2} + {\left (a^{4} b^{2} - 4 \, a^{5} c\right )} x^{2} + {\left (a^{3} b^{3} - 4 \, a^{4} b c\right )} x\right )}}, \frac {3 \, {\left (b^{3} c - 4 \, a b c^{2} + {\left (a b^{3} - 4 \, a^{2} b c\right )} x^{2} + {\left (b^{4} - 4 \, a b^{2} c\right )} x\right )} \sqrt {-a} \arctan \left (\frac {{\left (2 \, a x^{2} + b x\right )} \sqrt {-a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a^{2} x^{2} + a b x + a c\right )}}\right ) + 2 \, {\left ({\left (a^{2} b^{2} - 4 \, a^{3} c\right )} x^{3} + {\left (3 \, a b^{3} - 10 \, a^{2} b c\right )} x^{2} + {\left (3 \, a b^{2} c - 8 \, a^{2} c^{2}\right )} x\right )} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a^{3} b^{2} c - 4 \, a^{4} c^{2} + {\left (a^{4} b^{2} - 4 \, a^{5} c\right )} x^{2} + {\left (a^{3} b^{3} - 4 \, a^{4} b c\right )} x\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + \frac {b}{x} + \frac {c}{x^{2}}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.56, size = 237, normalized size = 1.78 \begin {gather*} -\frac {{\left (3 \, b^{3} \log \left ({\left | -b + 2 \, \sqrt {a} \sqrt {c} \right |}\right ) - 12 \, a b c \log \left ({\left | -b + 2 \, \sqrt {a} \sqrt {c} \right |}\right ) + 6 \, \sqrt {a} b^{2} \sqrt {c} - 16 \, a^{\frac {3}{2}} c^{\frac {3}{2}}\right )} \mathrm {sgn}\left (x\right )}{2 \, {\left (a^{\frac {5}{2}} b^{2} - 4 \, a^{\frac {7}{2}} c\right )}} + \frac {{\left (\frac {{\left (a b^{2} - 4 \, a^{2} c\right )} x}{a^{2} b^{2} \mathrm {sgn}\left (x\right ) - 4 \, a^{3} c \mathrm {sgn}\left (x\right )} + \frac {3 \, b^{3} - 10 \, a b c}{a^{2} b^{2} \mathrm {sgn}\left (x\right ) - 4 \, a^{3} c \mathrm {sgn}\left (x\right )}\right )} x + \frac {3 \, b^{2} c - 8 \, a c^{2}}{a^{2} b^{2} \mathrm {sgn}\left (x\right ) - 4 \, a^{3} c \mathrm {sgn}\left (x\right )}}{\sqrt {a x^{2} + b x + c}} + \frac {3 \, b \log \left ({\left | -2 \, {\left (\sqrt {a} x - \sqrt {a x^{2} + b x + c}\right )} \sqrt {a} - b \right |}\right )}{2 \, a^{\frac {5}{2}} \mathrm {sgn}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (a+\frac {b}{x}+\frac {c}{x^2}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________